package com.lsc.record.core.entity;

import java.util.List;

import com.lsc.record.core.listener.BaseEntityInsertListener;
import com.lsc.record.core.listener.BaseEntityUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.RelationOneToMany;
import com.mybatisflex.annotation.Table;

@Table(value="dm_form",onInsert = BaseEntityInsertListener.class,onUpdate = BaseEntityUpdateListener.class)
public class DmForm extends BaseEntity{
	private String typeId;

	@Column(ignore = true)
	@RelationOneToMany(selfField = "id",targetField = "formId")
	private List<DmFormItem> items;
	
	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public List<DmFormItem> getItems() {
		return items;
	}

	public void setItems(List<DmFormItem> items) {
		this.items = items;
	}
	
}
